package com.briup.pts.mapper;

import com.briup.pts.entity.ManagerFenceHouse;
import com.briup.pts.entity.ManagerFenceHouseExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ManagerFenceHouseMapper {
    // 统计栏舍，栏圈，动物，冷库，员工的数量信息在首页大屏进行展示。
    List<Object> countAllResources();
    // 分页+条件查询栏舍
    List<ManagerFenceHouse> queryAllHouses(String fhName);

    List<ManagerFenceHouse> selectAll();

    long countByExample(ManagerFenceHouseExample example);

    int deleteByExample(ManagerFenceHouseExample example);

    int deleteByPrimaryKey(String fhId);

    int insert(ManagerFenceHouse record);

    int insertSelective(ManagerFenceHouse record);

    List<ManagerFenceHouse> selectByExample(ManagerFenceHouseExample example);

    ManagerFenceHouse selectByPrimaryKey(String fhId);

    int updateByExampleSelective(@Param("record") ManagerFenceHouse record, @Param("example") ManagerFenceHouseExample example);

    int updateByExample(@Param("record") ManagerFenceHouse record, @Param("example") ManagerFenceHouseExample example);

    int updateByPrimaryKeySelective(ManagerFenceHouse record);

    int updateByPrimaryKey(ManagerFenceHouse record);
}